package com.sql.model;

import java.util.Date;

/**
 * Created by 走过全世界。 on 2017/5/30 0030.
 */
public class BorrowInfo {

    private Integer id;

    //图书名
    private String book_name;

    //索书号
    private String call_number;

    //借阅日期
    private Date borrow_time;

    //归还日期
    private Date return_time;

    //用户名
    private String username;

    //身份证号
    private String id_number;

    @Override
    public String toString() {
        return "BorrowInfo{" +
                "id=" + id +
                ", book_name='" + book_name + '\'' +
                ", call_number='" + call_number + '\'' +
                ", borrow_time=" + borrow_time +
                ", return_time=" + return_time +
                ", username='" + username + '\'' +
                ", id_number='" + id_number + '\'' +
                '}';
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public void setCall_number(String call_number) {
        this.call_number = call_number;
    }

    public void setBorrow_time(Date borrow_time) {
        this.borrow_time = borrow_time;
    }

    public void setReturn_time(Date return_time) {
        this.return_time = return_time;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setId_number(String id_number) {
        this.id_number = id_number;
    }

    public Integer getId() {
        return id;
    }

    public String getBook_name() {
        return book_name;
    }

    public String getCall_number() {
        return call_number;
    }

    public Date getBorrow_time() {
        return borrow_time;
    }

    public Date getReturn_time() {
        return return_time;
    }

    public String getUsername() {
        return username;
    }

    public String getId_number() {
        return id_number;
    }

    public BorrowInfo(Integer id, String book_name, String call_number,
                      Date borrow_time, Date return_time, String username,
                      String id_number) {
        this.id = id;
        this.book_name = book_name;
        this.call_number = call_number;
        this.borrow_time = borrow_time;
        this.return_time = return_time;
        this.username = username;
        this.id_number = id_number;
    }

    public BorrowInfo() {

    }
}
